import { Vec3 } from 'cc';
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

// 检查点位的结果，判断是否
export class PointInfo {
    // 是否打开
    public isOpened: boolean = false
    // 块数组
    public blocks: number[] = []
    // 定位
    public x: number = -1
    public z: number = -1
}

export class BrickAnimInfo {
    public brick: Node = null
    public end: Vec3 = Vec3.ZERO
}

export enum AnimType {
    NULL,
    BRICKFLY,
    BRICKCLEAN
}

// 动画类
export class AnimMono {
    // 动画类型
    public type: AnimType = AnimType.NULL
}

// 六边形块飞行动画
export class BrickFlyAnim extends AnimMono {
    public infos: BrickAnimInfo[]
    public dir: number = 0
    public originX: number
    public originZ: number
    public endX: number
    public endZ: number
}

// 六边形缩放动画
export class BrickCleanAnim extends AnimMono {
    public bricks: Node[] = []
    public x: number
    public z: number
}